package com.event.example.jpa;

import com.event.starter.listener.JpaNameSpaceListener;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description TODO
 * @Author Bing
 * @Date 2024/10/9 14:29
 */
@Getter
@Setter
@Table(name = "jjjshop_tag")
@Entity
@EntityListeners({JpaNameSpaceListener.class})
public class TagEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer tagId;

    @Column(name="tag_name",nullable = false)
    private String tagName;

    @Column(name="app_id",nullable = false)
    private Integer appId;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="update_time")
    private Date updateTime;

}